FROM maven:3.9.5-amazoncorretto-8 AS builder

RUN git clone https://gitee.com/Wan_xiaowen/ocrmanagement-backend.git /app/src

WORKDIR /app/src
RUN mvn clean package -DskipTests -Dmaven.repo.local=/root/.m2/repository

FROM openjdk:8-jre-alpine

COPY --from=builder /app/src/target/*.jar /app/app.jar


EXPOSE 8080

